Add global deprecation banner to all Entity docs pages with OpenAPI link - #409
Open
Schaukelking with Copilot wants to merge 1 commit into
Open
Add global deprecation banner to all Entity docs pages with OpenAPI link#409Schaukelking with Copilot wants to merge 1 commit into
Schaukelking with Copilot wants to merge 1 commit into
Conversation
Co-authored-by: Schaukelking <48789562+Schaukelking@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Schaukelking
August 27, 2026 12:45
View session
Schaukelking
marked this pull request as ready for review
August 27, 2026 12:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Entities markdown docs are being deprecated and each entity page now needs a clear redirect to the new OpenAPI docs. This change adds a single shared deprecation note across all entity entries under
entities.html.Scope
/sections/*) without touching each markdown file individually.Implementation
_includes/head_custom.htmlto inject a styled deprecation note after the page<h1>on entity pages.https://docs.mocoapp.com/api/docs/v1#description/introduction.Behavior
if (!window.location.pathname.includes("/sections/")) return; note.innerHTML = 'This API documentation is being deprecated. Please use our <a href="https://docs.mocoapp.com/api/docs/v1#description/introduction">OpenAPI Documentation</a> instead.';moco-1141 Deprecate Entities of Markdown API
This is what you see on every sub page of "Entities"
